home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
bbsutils
/
q_zz115.arj
/
PCBTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-03-06
|
1KB
|
64 lines
@echo off
if exist pcbpass.txt del pcbpass.txt
if exist pcbfail.txt del pcbfail.txt
cls
echo ┌───────────────────┐
echo │ Processing Upload │
echo └───────────────────┘
rem This are 4Dos commands - Command.com users should use GETEXT.EXE
rem Included in the ZZ Package
if %@ext[%1]==gif goto diz
if %@ext[%1]==zip goto zip
if %@ext[%1]==arj goto arj
if %@ext[%1]==lzh goto diz
if %@ext[%1]==txt goto diz
rem End of 4Dos commands
goto plus
:zip
echo ■ Testing ZIP file integrity
pkunzip -t %1 > pcbfail.txt
if errorlevel == 1 goto failed
goto diz
:arj
echo ■ Testing ARJ file integrity
arj t %1 > pcbfail.txt
if errorlevel == 1 goto failed
goto diz
:diz
echo ■ Executing ZipZap!
lh d:\zipzap\zipzap.exe d:\zipzap\zipzap.cnf %1 %3
del d:\comment.### > nul
if errorlevel==200 goto agefail
del pcbfail.txt > nul
goto end
:failed
echo ■ CRC ERROR
echo ■ Moving File offline !
move %1 d:\confs\ > nul
goto end
:agefail
echo ■ FILE FAILED AGE TEST!
echo ■ Moving File offline !
move %1 d:\confs\ > nul
goto end
:plus
echo ■ Executing UBPLUS!
d:\pcb\ubplus d:\pcb\ubplus.cnf %3
:end
@d:\pcb\doors\faker\fakerlog d:\pcb\doors\faker\faker.log %1
echo ■ Done!